package com.example.restaurant.controller.form;


import com.example.restaurant.common.allenum.DishStatus;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("修改菜品模型")
public class UpdateDishByIdForm {

    @NotNull
    @Min(1)
    //菜品id
    private Integer id;

    //关联菜类id
    @NotNull
    @Min(1)
    private Integer dishTypeId;
    //菜品名
    @NotBlank
    private String dishName;

    //状态 下架 TAKE_DOWN|上架 USE | 售罄 SOLD_OUT
    @NotNull
    private DishStatus status;

    //价格
    @NotNull
    @Min(1)
    private Double dishPrice;

    //单位
    @NotBlank
    private String unit;

    //菜品图片
    @NotBlank
    private String dishImg;

    //菜品描述
    @NotBlank
    private String dishDescribe;

    //已售数量
    @NotNull
    private Integer quantity;

    //库存
    @NotNull
    private Integer stock;
    //关联门店id
    @NotNull
    @Min(1)
    private Integer storeId;
}
